#include "GameNetServer.h"
#include <stdio.h>
#include <iostream>

using namespace std;

GameNetServer * GameNetServer::instance= NULL;

GameNetServer::GameNetServer() {

	 net_clients=new vector<GameNetClient*>();
	
}

void GameNetServer::addClient(GameNetClient *client)
{
	cout << "Dodaje klienta " << client->getId() <<endl;
	net_clients->push_back(client);
}

void GameNetServer::listClients() {
	
	for (int i=0; i < net_clients->size(); ++i)
	{

		cout << (net_clients->at(i))->getId()<<endl;
		
	}

}